package cn.wolfcode.shop.cloud.vo;

import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Pattern;

@Setter
@Getter
public class LoginVO {
    @Pattern(regexp = "1[345678]\\d{9}", message = "手机号格式不正确")
    private String username;
    @NotEmpty(message = "密码不能为空")
    private String password;
}
